package entity;

import java.util.Date;

/**
 * 项目名：PAIMSys
 * 包名：entity
 * 类名：sell
 * 描述：
 * 作者：柳胜酉
 * 开始时间：2023/4/25
 * 完成时间：
 * 版本：1.0
 */
public class Sell {
    private int sale_id; //销售编号
    private int product_id; //商品编号
    private String product_name; //商品名
    private int seller_id; //销售员编号
    private double price; //单价
    private double quantity; //数量
    private Date sale_time; //销售时间

    public int getSale_id() {
        return sale_id;
    }

    public void setSale_id(int sale_id) {
        this.sale_id = sale_id;
    }

    public int getProduct_id() {
        return product_id;
    }

    public void setProduct_id(int product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public int getSeller_id() {
        return seller_id;
    }

    public void setSeller_id(int seller_id) {
        this.seller_id = seller_id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public Date getSale_time() {
        return sale_time;
    }

    public void setSale_time(Date sale_time) {
        this.sale_time = sale_time;
    }

    @Override
    public String toString() {
        return "sell{" +
                "sale_id=" + sale_id +
                ", product_id=" + product_id +
                ", product_name='" + product_name + '\'' +
                ", seller_id=" + seller_id +
                ", price=" + price +
                ", quantity=" + quantity +
                ", sale_time=" + sale_time +
                '}';
    }
}
